const app = getApp()
Page({
  data: {
    currentIndex: 0, //默认是活动项
    currentData: 0,
  },
    // 申请售后
    requestAfterSales() {
        wx.showToast({
          title: '付款成功',
          icon: 'success',
          duration: 2000,
        });
        console.log("付款成功")
      },

     


     
  //获取当前滑块的index
  bindchange(e) {
    const that = this;
    that.setData({
      currentData: e.detail.current
    })
  },
  //点击切换，滑块index赋值
  checkCurrent(e) {
    const that = this;
    if (that.data.currentData === e.target.dataset.current) {
      return false;
    } else {
      that.setData({
        currentData: e.target.dataset.current
      })
    }
  },
})